//
//  SurveyItem.h
//  Surveyer
//
//  Created by Qikun Guo on 13-8-16.
//  Copyright (c) 2013年 Tim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class Result, Survey;

@interface SurveyItem : NSManagedObject

@property (nonatomic, retain) NSString * title;
@property (nonatomic, retain) NSString * type;
@property (nonatomic, retain) NSString * value1;
@property (nonatomic, retain) NSString * value2;
@property (nonatomic, retain) NSString * value3;
@property (nonatomic, retain) NSString * value4;
@property (nonatomic, retain) Survey *owner;
@property (nonatomic, retain) NSOrderedSet *result;
@end

@interface SurveyItem (CoreDataGeneratedAccessors)

- (void)insertObject:(Result *)value inResultAtIndex:(NSUInteger)idx;
- (void)removeObjectFromResultAtIndex:(NSUInteger)idx;
- (void)insertResult:(NSArray *)value atIndexes:(NSIndexSet *)indexes;
- (void)removeResultAtIndexes:(NSIndexSet *)indexes;
- (void)replaceObjectInResultAtIndex:(NSUInteger)idx withObject:(Result *)value;
- (void)replaceResultAtIndexes:(NSIndexSet *)indexes withResult:(NSArray *)values;
- (void)addResultObject:(Result *)value;
- (void)removeResultObject:(Result *)value;
- (void)addResult:(NSOrderedSet *)values;
- (void)removeResult:(NSOrderedSet *)values;
- (NSString *)textOutput;
@end
